import type { App, Directive } from "vue";
import hasRole from "./permission/hasRole";
import hasPermi from "./permission/hasPermi";
import copyText from "./common/copyText";

const directives = {
  install(app: App): void {
    app.directive("hasRole", hasRole);
    app.directive("hasPermi", hasPermi);
    app.directive("copyText", copyText as Directive);
  }
};
export default directives;
